<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:fnc="http://pef.czu.cz/jsf/facelets/fnc">
<ui:composition>
	<rich:column sortBy="#{beanData}"
		sortOrder="#{bean.sortsOrders[property]}" width="#{columnWidth}">
		<!--
		filterValue="#{bean.filterValues[property]}"
		filterExpression="#{property}">
		-->

		<f:facet name="header">
			<table>
				<tr>
					<td style="float: left;">
						<a4j:commandLink execute="@this" action="#{bean.sort}" render=":table" value="#{headerText}">
							<f:param name="sortProperty" value="#{property}" />
						</a4j:commandLink>
					</td>
					<td style="float: right; width: 16px; height: 16px; vertical-align: top;">
						<h:graphicImage value="#{fnc:concat(fnc:concat('/images/icons/tables/', bean.sortsOrders[property]), '_icon.gif')}"/>
					</td>
				</tr>
				<tr>
					<td colspan="2">
						<h:inputText value="#{bean.filterValues[property]}" rendered="${not empty textFilterRendered and textFilterRendered}" style="width: 100%;">
							<a4j:ajax event="keyup" execute="@this" listener="${bean.filterListener}" render=":table"/>
						</h:inputText>
						<!--
						<a4j:commandButton execute="@this" action="" render=":table" value="#{bundle['entities.filterEntities']}" type="submit" rendered="#{not empty textFilterRendered and textFilterRendered}">
						</a4j:commandButton>
						-->
					</td>
				</tr>
			</table>
		</f:facet>
		<h:outputText value="#{record[property]}" />
	</rich:column>
</ui:composition>
</html>